<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Pepr3D: pepr3d::SemiautomaticSegmentation Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pepr3d_icon.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Pepr3D
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Pepr3D is a 3D graphics editor designed for FDM printing</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpepr3d_1_1_semiautomatic_segmentation.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-types">Private Types</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classpepr3d_1_1_semiautomatic_segmentation-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">pepr3d::SemiautomaticSegmentation Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> used for manually expanding specified regions to create a segmentation of the model.  
 <a href="classpepr3d_1_1_semiautomatic_segmentation.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_semiautomatic_segmentation_8h_source.html">SemiautomaticSegmentation.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for pepr3d::SemiautomaticSegmentation:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpepr3d_1_1_semiautomatic_segmentation.png" usemap="#pepr3d::SemiautomaticSegmentation_map" alt=""/>
  <map id="pepr3d::SemiautomaticSegmentation_map" name="pepr3d::SemiautomaticSegmentation_map">
<area href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t..." alt="pepr3d::Tool" shape="rect" coords="0,0,213,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpepr3d_1_1_semiautomatic_segmentation_1_1_normal_stopping.html">NormalStopping</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A segmentation criterion that stops when angles of normals are too different.  <a href="structpepr3d_1_1_semiautomatic_segmentation_1_1_normal_stopping.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpepr3d_1_1_semiautomatic_segmentation_1_1_s_d_f_stopping.html">SDFStopping</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A segmentation criterion that stops when SDF values are too different.  <a href="structpepr3d_1_1_semiautomatic_segmentation_1_1_s_d_f_stopping.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac17cad75cd7d333414c0d5db567026d6"><td class="memItemLeft" align="right" valign="top"><a id="ac17cad75cd7d333414c0d5db567026d6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SemiautomaticSegmentation</b> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;app)</td></tr>
<tr class="separator:ac17cad75cd7d333414c0d5db567026d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c30b8fe02de8112fc4295ba78d29077"><td class="memItemLeft" align="right" valign="top"><a id="a2c30b8fe02de8112fc4295ba78d29077"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_semiautomatic_segmentation.html#a2c30b8fe02de8112fc4295ba78d29077">getName</a> () const override</td></tr>
<tr class="memdesc:a2c30b8fe02de8112fc4295ba78d29077"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a short name, displayed e.g., in a side pane and tooltip. <br /></td></tr>
<tr class="separator:a2c30b8fe02de8112fc4295ba78d29077"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a181a28ad82f889489264ad75e3d41e6e"><td class="memItemLeft" align="right" valign="top"><a id="a181a28ad82f889489264ad75e3d41e6e"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_semiautomatic_segmentation.html#a181a28ad82f889489264ad75e3d41e6e">getDescription</a> () const override</td></tr>
<tr class="memdesc:a181a28ad82f889489264ad75e3d41e6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a description, displayed e.g., in a tooltip. <br /></td></tr>
<tr class="separator:a181a28ad82f889489264ad75e3d41e6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac660a9823195bf2d3df1066b177fc1d8"><td class="memItemLeft" align="right" valign="top"><a id="ac660a9823195bf2d3df1066b177fc1d8"></a>
virtual std::optional&lt; <a class="el" href="structpepr3d_1_1_hotkey.html">Hotkey</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_semiautomatic_segmentation.html#ac660a9823195bf2d3df1066b177fc1d8">getHotkey</a> (const <a class="el" href="classpepr3d_1_1_hotkeys.html">Hotkeys</a> &amp;hotkeys) const override</td></tr>
<tr class="memdesc:ac660a9823195bf2d3df1066b177fc1d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an associated <a class="el" href="structpepr3d_1_1_hotkey.html" title="A hotkey, i.e., a keycode and modifiers (Ctrl)">Hotkey</a> or an empty value. Use hotkeys.findHotkey() method. <br /></td></tr>
<tr class="separator:ac660a9823195bf2d3df1066b177fc1d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3fb6ca454b5ef25a2efacc957fdaff8"><td class="memItemLeft" align="right" valign="top"><a id="aa3fb6ca454b5ef25a2efacc957fdaff8"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_semiautomatic_segmentation.html#aa3fb6ca454b5ef25a2efacc957fdaff8">getIcon</a> () const override</td></tr>
<tr class="memdesc:aa3fb6ca454b5ef25a2efacc957fdaff8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a UTF-8 icon from an icon font. <br /></td></tr>
<tr class="separator:aa3fb6ca454b5ef25a2efacc957fdaff8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74f11046c9fe827f6be119bd6306fa0f"><td class="memItemLeft" align="right" valign="top"><a id="a74f11046c9fe827f6be119bd6306fa0f"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_semiautomatic_segmentation.html#a74f11046c9fe827f6be119bd6306fa0f">drawToSidePane</a> (<a class="el" href="classpepr3d_1_1_side_pane.html">SidePane</a> &amp;sidePane) override</td></tr>
<tr class="memdesc:a74f11046c9fe827f6be119bd6306fa0f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called every frame on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a>. Draw to <a class="el" href="classpepr3d_1_1_side_pane.html" title="Right side of the user interface that displays options of the currently selected tool.">SidePane</a> from inside this method. <br /></td></tr>
<tr class="separator:a74f11046c9fe827f6be119bd6306fa0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a138b0b37e305c4a8d0dd4b89d7303c50"><td class="memItemLeft" align="right" valign="top"><a id="a138b0b37e305c4a8d0dd4b89d7303c50"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_semiautomatic_segmentation.html#a138b0b37e305c4a8d0dd4b89d7303c50">drawToModelView</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView) override</td></tr>
<tr class="memdesc:a138b0b37e305c4a8d0dd4b89d7303c50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called every frame on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a>. Draw to <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a> from inside this method. <br /></td></tr>
<tr class="separator:a138b0b37e305c4a8d0dd4b89d7303c50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c3f72008481531cc952c9d7957fb928"><td class="memItemLeft" align="right" valign="top"><a id="a4c3f72008481531cc952c9d7957fb928"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_semiautomatic_segmentation.html#a4c3f72008481531cc952c9d7957fb928">onModelViewMouseDown</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event) override</td></tr>
<tr class="memdesc:a4c3f72008481531cc952c9d7957fb928"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users presses a mouse button over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:a4c3f72008481531cc952c9d7957fb928"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77e201830fcc97742fae904303cbcc01"><td class="memItemLeft" align="right" valign="top"><a id="a77e201830fcc97742fae904303cbcc01"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_semiautomatic_segmentation.html#a77e201830fcc97742fae904303cbcc01">onModelViewMouseDrag</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event) override</td></tr>
<tr class="memdesc:a77e201830fcc97742fae904303cbcc01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users drags a mouse button over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:a77e201830fcc97742fae904303cbcc01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb75b5da63d4444c57f4f75ae1660935"><td class="memItemLeft" align="right" valign="top"><a id="afb75b5da63d4444c57f4f75ae1660935"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_semiautomatic_segmentation.html#afb75b5da63d4444c57f4f75ae1660935">onModelViewMouseMove</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event) override</td></tr>
<tr class="memdesc:afb75b5da63d4444c57f4f75ae1660935"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users moves mouse cursor over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. Note: This method is not called when the user is dragging the mouse! <br /></td></tr>
<tr class="separator:afb75b5da63d4444c57f4f75ae1660935"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa682000b0095bf95a3d67d54977324bc"><td class="memItemLeft" align="right" valign="top"><a id="aa682000b0095bf95a3d67d54977324bc"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_semiautomatic_segmentation.html#aa682000b0095bf95a3d67d54977324bc">onNewGeometryLoaded</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView) override</td></tr>
<tr class="memdesc:aa682000b0095bf95a3d67d54977324bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on EVERY <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> right after a new <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a> is loaded or imported. <br /></td></tr>
<tr class="separator:aa682000b0095bf95a3d67d54977324bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7992f161194bd23ddff96433819029d"><td class="memItemLeft" align="right" valign="top"><a id="aa7992f161194bd23ddff96433819029d"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_semiautomatic_segmentation.html#aa7992f161194bd23ddff96433819029d">onToolDeselect</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView) override</td></tr>
<tr class="memdesc:aa7992f161194bd23ddff96433819029d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> right after user selects another tool. Note: It may also be called when a user selects the same tool again! <br /></td></tr>
<tr class="separator:aa7992f161194bd23ddff96433819029d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5883c42824da8d5adec628e065e317b3"><td class="memItemLeft" align="right" valign="top"><a id="a5883c42824da8d5adec628e065e317b3"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_semiautomatic_segmentation.html#a5883c42824da8d5adec628e065e317b3">isEnabled</a> () const override</td></tr>
<tr class="memdesc:a5883c42824da8d5adec628e065e317b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if enabled and can be selected, otherwise false. This should be a fast method, it is called every frame! <br /></td></tr>
<tr class="separator:a5883c42824da8d5adec628e065e317b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpepr3d_1_1_tool"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpepr3d_1_1_tool')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classpepr3d_1_1_tool.html">pepr3d::Tool</a></td></tr>
<tr class="memitem:a3d6d4e593753eba998b2a6d6fb49c5af inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a3d6d4e593753eba998b2a6d6fb49c5af"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a3d6d4e593753eba998b2a6d6fb49c5af">onModelViewMouseUp</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event)</td></tr>
<tr class="memdesc:a3d6d4e593753eba998b2a6d6fb49c5af inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users releases a mouse button over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:a3d6d4e593753eba998b2a6d6fb49c5af inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1aae7ecebb6d2e63dfa61d08ff022ae inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="aa1aae7ecebb6d2e63dfa61d08ff022ae"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#aa1aae7ecebb6d2e63dfa61d08ff022ae">onModelViewMouseWheel</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView, ci::app::MouseEvent event)</td></tr>
<tr class="memdesc:aa1aae7ecebb6d2e63dfa61d08ff022ae inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a currently active <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> when users scrolls mouse wheel over a <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a>. <br /></td></tr>
<tr class="separator:aa1aae7ecebb6d2e63dfa61d08ff022ae inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a139c1e72bd9eada36ce660e1fbf10c6b inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a139c1e72bd9eada36ce660e1fbf10c6b"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a139c1e72bd9eada36ce660e1fbf10c6b">onToolSelect</a> (<a class="el" href="classpepr3d_1_1_model_view.html">ModelView</a> &amp;modelView)</td></tr>
<tr class="memdesc:a139c1e72bd9eada36ce660e1fbf10c6b inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called on a <a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> right after user selects it. Note: It may also be called when a user selects the same tool again! <br /></td></tr>
<tr class="separator:a139c1e72bd9eada36ce660e1fbf10c6b inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2420df1e8a95c66a882a923158084020 inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a2420df1e8a95c66a882a923158084020"></a>
virtual std::optional&lt; std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a2420df1e8a95c66a882a923158084020">safeIntersectMesh</a> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;mainApplication, const ci::Ray ray) final</td></tr>
<tr class="memdesc:a2420df1e8a95c66a882a923158084020 inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an optional intersection (an index of a triangle) of a ci::Ray with current <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a>. This method is safe and if an exception occurs, an error dialog is automatically shown. <br /></td></tr>
<tr class="separator:a2420df1e8a95c66a882a923158084020 inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2645ac765f26cbda2ab9c818a362912f inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="a2645ac765f26cbda2ab9c818a362912f"></a>
virtual std::optional&lt; <a class="el" href="structpepr3d_1_1_detailed_triangle_id.html">DetailedTriangleId</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_tool.html#a2645ac765f26cbda2ab9c818a362912f">safeIntersectDetailedMesh</a> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;mainApplication, const ci::Ray ray) final</td></tr>
<tr class="memdesc:a2645ac765f26cbda2ab9c818a362912f inherit pub_methods_classpepr3d_1_1_tool"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an optional intersection (<a class="el" href="structpepr3d_1_1_detailed_triangle_id.html" title="Triangle ID in all detailed triangles Face index in mMeshDetailed faces;.">DetailedTriangleId</a>) of a ci::Ray with current <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a>. This method is safe and if an exception occurs, an error dialog is automatically shown. <br /></td></tr>
<tr class="separator:a2645ac765f26cbda2ab9c818a362912f inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff4584fe20f552ae3b7814ecab423768 inherit pub_methods_classpepr3d_1_1_tool"><td class="memItemLeft" align="right" valign="top"><a id="aff4584fe20f552ae3b7814ecab423768"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>safeComputeSdf</b> (<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;mainApplication) final</td></tr>
<tr class="separator:aff4584fe20f552ae3b7814ecab423768 inherit pub_methods_classpepr3d_1_1_tool"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-types"></a>
Private Types</h2></td></tr>
<tr class="memitem:a97a8b6061b26cb4dd67ac14eace1f30b"><td class="memItemLeft" align="right" valign="top"><a id="a97a8b6061b26cb4dd67ac14eace1f30b"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>Criteria</b> { <b>NORMAL</b> = 1, 
<b>SDF</b> = 2
 }</td></tr>
<tr class="separator:a97a8b6061b26cb4dd67ac14eace1f30b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a9e3e327658d9a422cf5e68d14cfa25f0"><td class="memItemLeft" align="right" valign="top"><a id="a9e3e327658d9a422cf5e68d14cfa25f0"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>reset</b> ()</td></tr>
<tr class="separator:a9e3e327658d9a422cf5e68d14cfa25f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a41d3c0fd80854417323e16010f7b67"><td class="memItemLeft" align="right" valign="top"><a id="a0a41d3c0fd80854417323e16010f7b67"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setupOverride</b> ()</td></tr>
<tr class="separator:a0a41d3c0fd80854417323e16010f7b67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98d9b835dfb7d5cb98abc6caa1a75f8e"><td class="memItemLeft" align="right" valign="top"><a id="a98d9b835dfb7d5cb98abc6caa1a75f8e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setTriangleColor</b> ()</td></tr>
<tr class="separator:a98d9b835dfb7d5cb98abc6caa1a75f8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7a57a2621edd7b2aa30ccf0b313b34f"><td class="memItemLeft" align="right" valign="top"><a id="ae7a57a2621edd7b2aa30ccf0b313b34f"></a>
std::unordered_map&lt; std::size_t, std::vector&lt; std::size_t &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>collectTrianglesByColor</b> (const std::unordered_map&lt; std::size_t, std::size_t &gt; &amp;sourceTriangles)</td></tr>
<tr class="separator:ae7a57a2621edd7b2aa30ccf0b313b34f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a163c52c9b1e672ba76141923ab87eb0a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_semiautomatic_segmentation.html#a163c52c9b1e672ba76141923ab87eb0a">spreadColors</a> ()</td></tr>
<tr class="separator:a163c52c9b1e672ba76141923ab87eb0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbdbc4dfe19c562f9212eded1556f1fd"><td class="memItemLeft" align="right" valign="top"><a id="acbdbc4dfe19c562f9212eded1556f1fd"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>postprocess</b> (const std::unordered_map&lt; std::size_t, std::vector&lt; double &gt;&gt; &amp;sdfValuesPerColor)</td></tr>
<tr class="separator:acbdbc4dfe19c562f9212eded1556f1fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66b87e3be75a6d3becc1e01c6025abb3"><td class="memItemLeft" align="right" valign="top"><a id="a66b87e3be75a6d3becc1e01c6025abb3"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>findClosestColorFromSDF</b> (const size_t triangle, const size_t color1, const size_t color2, const std::unordered_map&lt; std::size_t, std::vector&lt; double &gt;&gt; &amp;sdfValuesPerColor)</td></tr>
<tr class="separator:a66b87e3be75a6d3becc1e01c6025abb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:acbc1de3fdcec0222fffde0c7a4d7c943"><td class="memItemLeft" align="right" valign="top"><a id="acbc1de3fdcec0222fffde0c7a4d7c943"></a>
<a class="el" href="classpepr3d_1_1_main_application.html">MainApplication</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>mApplication</b></td></tr>
<tr class="separator:acbc1de3fdcec0222fffde0c7a4d7c943"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada6a7bc61dd887650790d6ab7e124be0"><td class="memItemLeft" align="right" valign="top"><a id="ada6a7bc61dd887650790d6ab7e124be0"></a>
std::optional&lt; std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mHoveredTriangleId</b> = {}</td></tr>
<tr class="separator:ada6a7bc61dd887650790d6ab7e124be0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dbfdce521caeb15d2a6ff6afe0bfd6c"><td class="memItemLeft" align="right" valign="top"><a id="a3dbfdce521caeb15d2a6ff6afe0bfd6c"></a>
std::unordered_map&lt; std::size_t, std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mStartingTriangles</b></td></tr>
<tr class="separator:a3dbfdce521caeb15d2a6ff6afe0bfd6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0edb6cea56b65770a0198afa0327f95a"><td class="memItemLeft" align="right" valign="top"><a id="a0edb6cea56b65770a0198afa0327f95a"></a>
std::vector&lt; glm::vec4 &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mBackupColorBuffer</b> = {}</td></tr>
<tr class="separator:a0edb6cea56b65770a0198afa0327f95a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa11a69bd21677ed61f031742bc9f70b9"><td class="memItemLeft" align="right" valign="top"><a id="aa11a69bd21677ed61f031742bc9f70b9"></a>
std::unordered_map&lt; std::size_t, std::vector&lt; std::size_t &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mCurrentColoring</b> = {}</td></tr>
<tr class="separator:aa11a69bd21677ed61f031742bc9f70b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14ee2f3433e625c292873dc40d59ded7"><td class="memItemLeft" align="right" valign="top"><a id="a14ee2f3433e625c292873dc40d59ded7"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>mBucketSpread</b> = 0.0f</td></tr>
<tr class="separator:a14ee2f3433e625c292873dc40d59ded7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf0842f9b84704f6bd1f573d3cd9d71f"><td class="memItemLeft" align="right" valign="top"><a id="abf0842f9b84704f6bd1f573d3cd9d71f"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>mBucketSpreadLatest</b> = 0.0f</td></tr>
<tr class="separator:abf0842f9b84704f6bd1f573d3cd9d71f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5fdb732b042108da0a96fa2376d6f25"><td class="memItemLeft" align="right" valign="top"><a id="ac5fdb732b042108da0a96fa2376d6f25"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mRegionOverlap</b> = false</td></tr>
<tr class="separator:ac5fdb732b042108da0a96fa2376d6f25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a891511ae4a879017f2b41f7ea60ea00d"><td class="memItemLeft" align="right" valign="top"><a id="a891511ae4a879017f2b41f7ea60ea00d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mRegionOverlapLatest</b> = false</td></tr>
<tr class="separator:a891511ae4a879017f2b41f7ea60ea00d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36fe1e14da326441541dae71813efcbd"><td class="memItemLeft" align="right" valign="top"><a id="a36fe1e14da326441541dae71813efcbd"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mHardEdges</b> = false</td></tr>
<tr class="separator:a36fe1e14da326441541dae71813efcbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a66c343b795f12b6e0ce2da9348a114"><td class="memItemLeft" align="right" valign="top"><a id="a6a66c343b795f12b6e0ce2da9348a114"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mHardEdgesLatest</b> = false</td></tr>
<tr class="separator:a6a66c343b795f12b6e0ce2da9348a114"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66acd079f9745d4256ab565875a16467"><td class="memItemLeft" align="right" valign="top"><a id="a66acd079f9745d4256ab565875a16467"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mGeometryCorrect</b> = true</td></tr>
<tr class="separator:a66acd079f9745d4256ab565875a16467"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9241c976815c903667d695474f800ed7"><td class="memItemLeft" align="right" valign="top"><a id="a9241c976815c903667d695474f800ed7"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mNormalStop</b> = false</td></tr>
<tr class="separator:a9241c976815c903667d695474f800ed7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf38b8e2bd48df516e2dc85bc96255d8"><td class="memItemLeft" align="right" valign="top"><a id="aaf38b8e2bd48df516e2dc85bc96255d8"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mDragging</b> = false</td></tr>
<tr class="separator:aaf38b8e2bd48df516e2dc85bc96255d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54b1b6bd1dc72e3e2c8705fc40d8bd24"><td class="memItemLeft" align="right" valign="top"><a id="a54b1b6bd1dc72e3e2c8705fc40d8bd24"></a>
const bool *&#160;</td><td class="memItemRight" valign="bottom"><b>mSdfEnabled</b> = nullptr</td></tr>
<tr class="separator:a54b1b6bd1dc72e3e2c8705fc40d8bd24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa313797e5f5f5650463d9c5423a5f8a6"><td class="memItemLeft" align="right" valign="top"><a id="aa313797e5f5f5650463d9c5423a5f8a6"></a>
Criteria&#160;</td><td class="memItemRight" valign="bottom"><b>mCriterionUsed</b> = Criteria::SDF</td></tr>
<tr class="separator:aa313797e5f5f5650463d9c5423a5f8a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classpepr3d_1_1_tool.html" title="A base class of all tools that the user can select and manipulate the Geometry and application with t...">Tool</a> used for manually expanding specified regions to create a segmentation of the model. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a163c52c9b1e672ba76141923ab87eb0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a163c52c9b1e672ba76141923ab87eb0a">&#9670;&nbsp;</a></span>spreadColors()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void pepr3d::SemiautomaticSegmentation::spreadColors </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Normal stopping init, uncomment in case we want to include it as a feature </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>D:/Home/MFF/1-Mgr/projekt/pepr3d/src/tools/<a class="el" href="_semiautomatic_segmentation_8h_source.html">SemiautomaticSegmentation.h</a></li>
<li>D:/Home/MFF/1-Mgr/projekt/pepr3d/src/tools/SemiautomaticSegmentation.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacepepr3d.html">pepr3d</a></li><li class="navelem"><a class="el" href="classpepr3d_1_1_semiautomatic_segmentation.html">SemiautomaticSegmentation</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
